package com.lzc.config;

import cn.hutool.extra.qrcode.QrConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.awt.*;

/**
 * 二维码配置类
 */
@Configuration
public class QCodeConfig {

    @Bean
    public QrConfig qrConfig(){
        QrConfig qc = new QrConfig();
        qc.setBackColor(Color.white.getRGB());
        qc.setForeColor(Color.black.getRGB());
        return qc;
    }
}
